package dal

import (
	"gorm.io/gorm"
	"videoPlay/internal/dal/dalModels"
)

func Migrate(db *gorm.DB) error {
	ms := []any{dalModels.VideoTag{}, dalModels.DurationTag{}, dalModels.Video{}}
	return db.AutoMigrate(ms...)
}
